class Blog::CommentsController < ApplicationController
  def index
    @comments = Comment.find :all, :order => 'created_at DESC', :limit => 15
  end

  def create
    @post = Post.find params[:post_id]
    @comment = @post.comments.create!(params[:comment])
    Notifier.deliver_new_comment(@comment)
    respond_to do |format|
      format.js
    end
  end

end
